package filmring

/*
This class defines the properties of a Film ring user.
 */

class FRUser {
    String username   //The username of the user
    String password   //The password for the specific user
    String email      //The user's email
    Date dateCreated  //The date the user account was created.

    static hasMany = [
            reviews:Review,  //List of reviews made by the user
            ratings:Rating,  //List of ratings made by the user
            activityFeed:ActivityFeedEvent  //Activity feed associated with the user.
    ]

    static constraints = {
        email(unique:true)
        username(unique:true)
    }
}
